package top.crex1.blogstarter.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.crex1.blogstarter.domain.*;

/**
 * Media Type 控制器.
 *
 * @author ZZH
 * @date 2018-3-27
 */
@RestController
public class MediaTypeController {

	/**
	 * 根据客户端请求的 Content-Type，响应相应的 UserVO 类型.
	 * 
	 * @return
	 */
	@RequestMapping("/user")
	public User getUser() {
		return new User("zhangzhenghong", 22);
	}

}
